<div id="wrap">
	<div class="title"><?php echo $self['title']?></div>
	<div class="main">
		<p class="tt">管理员列表</p>
		<table class="manager">
			<thead>
				<tr><th>管理员名称</th><th>权限等级</th><th>联系电话</th><th>操作</th></tr>
			</thead>
			<tbody>
			<?php foreach($all_data as $item){ ?>
				<tr>
					<td><?php echo $item['user']?></td>
					<td><?php echo $item['job_name']?></td>
					<td><?php echo $item['phone']?></td>
					<td>
		<?php if($admin_data && !$admin_data['job']){ ?>
			<?php if($item['job_name'] !== 'root'){ ?>
					<a href="?p=8&id=<?php echo $item['id']?>">委任</a>
			<?php }?>
		<?php }else{ ?>
			<?php 
				 if($item['job_name'] !== 'root' && $user_data['job'] != 1 && $user_data['job'] > $item['job'] && $item['id'] != $user_data['id']){ ?>
					<a href="?p=8&id=<?php echo $item['id']?>">委任</a>
			<?php }?>	
		<?php } ?>
					</td>
				</tr>
			<?php } ?>
			</tbody>
		</table>
	</div>
</div>
</body>
</html>